/**
 * 
 */
package design_pattern.memento.blackbox;

/**
 * @author linzq
 * 
 */
public class Client {

  public static void main(String[] args) {
    Originator o = new Originator();
    CareTaker c = new CareTaker();
    o.setState("On");
    c.saveMemento(o.createMemento());
    o.setState("Off");
    o.restoreMemento(c.retrieveMemento());
  }
}
